package com.joplus.housekeeper.ui.view;

import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.util.AttributeSet;

/**
 *
 *author wutingxi
 *time 2016/11/7
 *
 * 重写canScrollVertically（）方法，返回fasle不会在scrollview中滑动不顺畅
 */

public class FluentLinearLayoutManager extends LinearLayoutManager {
    public FluentLinearLayoutManager(Context context) {
        super(context);
    }

    public FluentLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
        super(context, orientation, reverseLayout);

    }

    public FluentLinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);

    }

    @Override
    public boolean canScrollVertically() {
        return false;
    }
}
